package com.yt.service;

import com.yt.entity.User;
import com.yt.util.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Classname ConService
 * @Description
 * @Date 2021/10/31 19:40
 * @Create by 杨涛
 */
@Component
@FeignClient("ali-sentinel-provider")
public interface ConService {

    @RequestMapping("/get/{id}")
    public CommonResult<User> getUserById(@PathVariable("id")  long id);
}
